<template>
  <svg class="svg-icon" aria-hidden="true">
    <use :xlink:href="iconName"></use>
  </svg>
</template>
<script lang="ts" setup>
import { computed } from 'vue';
const props = defineProps({
  iconClass: String
})

const iconName =  computed(() => `#icon-${props.iconClass}`)

</script>
<style lang="scss" scoped>
.svg-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.2em;
  fill: currentColor;
  overflow: hidden;
  font-size: 18px;

}
</style>